
package com.zcp.notepad;

import com.zcp.notepad.NotePad.Notes;

import android.content.Context;
import android.widget.RemoteViews;

public class NoteWidgetProvider44 extends NoteWidgetProvider {

    @Override
    protected int getWidgetSize() {
        return 44;
    }

    @Override
    protected RemoteViews getRemoteViews(Context context) {

        return new RemoteViews(context.getPackageName(), R.layout.appwidget_info_4x4);
    }

    @Override
    protected int getWidgetBackgroundResoures(String color) {
        if (Notes.Color.BLUE.equals(color)) {
            return R.drawable.widget3_blue;
        } else if (Notes.Color.PINK.equals(color)) {
            return R.drawable.widget3_pink;
        } else if (Notes.Color.GREEN.equals(color)) {
            return R.drawable.widget3_green;
        } else if (Notes.Color.ORANGE.equals(color)) {
            return R.drawable.widget3;
        } else if (Notes.Color.PURPLE.equals(color)) {
            return R.drawable.widget3_purple;
        }
        return 0;
    }
}
